<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_card_recharge.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/V_card_recharge.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '储值卡区间充值消费',
                    name: 'V_card_recharge',
                    url: "/V_card_recharge/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {cardno:"",createDate:""},
                searchFormOptions: [
                  [{"title":"卡号","field":"cardno","type":"like"},
                  {"title":"创建时间","field":"createDate","type":"datetime"},
                ]
                ],
                columns: [
                  // {field:'merchantCode',title:'商户编号',type:'string',width:90,align:'left',sortable:true},
                       {field:'member_name',title:'姓名',type:'string',width:90,align:'left'},
                       {field:'cardno',title:'卡号',type:'string',width:90,align:'left'},
                       {field:'BeginRechargeAmount',title:'期初充值余额',type:'decimal',width:90,align:'left'},
                       {field:'Beginbalance',title:'期初余额',type:'decimal',width:90,align:'left'},
                       {field:'Rechargebalance',title:'充值余额',type:'decimal',width:90,align:'left'},
                       {field:'Consumbalance',title:'消费金额',type:'decimal',width:90,align:'left'},
                       {field:'EndRechargeAmount',title:'期末充值余额',type:'decimal',width:90,align:'left'},
                       {field:'Endbalance',title:'期末余额',type:'decimal',width:90,align:'left'},
                      //  {field:'id',title:'id',type:'int',sort:true,width:120,require:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true}
                      ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
